package com.genshang.restaurant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alex
 * @since 2020-09-25
 */
@TableName("BANNER_INFO")
public class BannerInfo extends Model<BannerInfo> {

    private static final long serialVersionUID = 1L;

    @TableId("SID")
    private Long sid;

    @TableField("IMG_URL")
    private String imgUrl;

    @TableField("BANNER_TITLE")
    private String bannerTitle;

    @TableField("REDIRECT_URL")
    private String redirectUrl;

    /**
     * （1上架，0下架）
     */
    @TableField("BANNER_STATUS")
    private String bannerStatus;

    @TableField("CREATED_TIME")
    private LocalDateTime createdTime;

    @TableField("UPDATED_TIME")
    private LocalDateTime updatedTime;

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }
    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    public String getBannerTitle() {
        return bannerTitle;
    }

    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }
    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }
    public String getBannerStatus() {
        return bannerStatus;
    }

    public void setBannerStatus(String bannerStatus) {
        this.bannerStatus = bannerStatus;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.sid;
    }

    @Override
    public String toString() {
        return "BannerInfo{" +
            "sid=" + sid +
            ", imgUrl=" + imgUrl +
            ", bannerTitle=" + bannerTitle +
            ", redirectUrl=" + redirectUrl +
            ", bannerStatus=" + bannerStatus +
            ", createdTime=" + createdTime +
            ", updatedTime=" + updatedTime +
        "}";
    }
}
